package com.fly.framework.shiro.service;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.apache.commons.collections4.map.HashedMap;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.session.Session;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import com.fly.system.mapper.UserMapper;
import com.fly.system.model.RoleModel;
import com.fly.system.model.UserModel;

@Component
public class LoginService {

	@Autowired
	private UserMapper userMapper;
	
	public UserModel getUserModelByName(String name) {
		
		UserModel obj = new UserModel();
		obj.setLoginName(name);
		UserModel one = userMapper.selectOne(obj);
		
		return one;
	}

}
